|
Kameleon-Plus
0.3.2
|
TODO: Brief description of FileReader class. More...
#include <ccmc/FileReader.h>


Public Member Functions | |
| FileReader () | |
| long | open (const std::string &filename, bool readonly=true) |
| virtual std::vector< float > * | getVariable (const std::string &variable)=0 |
| virtual std::vector< float > * | getVariable (long variableID)=0 |
| virtual std::vector< float > * | getVariable (const std::string &variable, long startIndex, long count)=0 |
| virtual std::vector< float > * | getVariable (long variableID, long startIndex, long count)=0 |
| virtual float | getVariableAtIndex (const std::string &variable, long index)=0 |
| virtual float | getVariableAtIndex (long variable_id, long index)=0 |
| virtual std::vector< int > * | getVariableInt (const std::string &variable)=0 |
| virtual int | getVariableIntAtIndex (const std::string &variable, long index)=0 |
| virtual int | getNumberOfGlobalAttributes ()=0 |
| virtual int | getNumberOfVariables ()=0 |
| virtual int | getNumberOfVariableAttributes ()=0 |
| virtual long | getNumberOfRecords (const std::string &variable)=0 |
| virtual long | getNumberOfRecords (long variable_id)=0 |
| virtual long | getVariableID (const std::string &variable)=0 |
| virtual std::string | getVariableName (long variable_id)=0 |
| virtual Attribute | getGlobalAttribute (long i)=0 |
| virtual std::string | getGlobalAttributeName (long attribute_id)=0 |
| virtual std::string | getVariableAttributeName (long attribute_id)=0 |
| virtual Attribute | getGlobalAttribute (const std::string &attribute)=0 |
| virtual long | getGlobalAttributeID (const std::string &attribute)=0 |
| virtual Attribute | getVariableAttribute (const std::string &variable, const std::string &attribute)=0 |
| virtual std::vector< std::string > | getVariableAttributeNames ()=0 |
| virtual bool | doesAttributeExist (const std::string &attribute)=0 |
| virtual bool | doesVariableExist (const std::string &variable)=0 |
| void | addVariableName (const std::string &variable, long id) |
| long | close () |
| virtual const std::string & | getCurrentFilename ()=0 |
| virtual void | initializeVariableIDs ()=0 |
| virtual void | initializeVariableNames ()=0 |
| virtual long | closeFile ()=0 |
| virtual long | openFile (const std::string &filename, bool readonly)=0 |
| virtual | ~FileReader () |
Static Public Attributes | |
| static const long | OK = 0L |
| static const long | OPEN_ERROR = -1L |
| static const long | FILE_DOES_NOT_EXIST = -2L |
| static const long | VARIABLE_DOES_NOT_EXIST = -3L |
| static const long | ATTRIBUTE_DOES_NOT_EXIST = -4L |
| static const long | LOAD_FAILED = -5L |
| static const long | UNABLE_TO_ALLOCATE_MEMORY = -6L |
| static const long | VARIABLE_NOT_IN_MEMORY = -7L |
| static const long | MODEL_NOT_SUPPORTED = -8L |
| static const long | NOT_A_VALID_KAMELEON_FILE = -9L |
Protected Member Functions | |
| void | initializeGlobalAttributes () |
| void | initializeVariableAttributes () |
Protected Attributes | |
| std::string | current_filename |
| int | numGAttributes |
| int | numVAttributes |
| boost::unordered_map < std::string, long > | variableIDs |
| boost::unordered_map< long, std::string > | variableNames |
| boost::unordered_map < std::string, Attribute > | gAttributes |
| boost::unordered_map< long, Attribute > | gAttributeByID |
| boost::unordered_map < std::string, boost::unordered_map < std::string, Attribute > > | vAttributes |
TODO: Brief description of FileReader class.
TODO: Full description of FileReader class
| ccmc::FileReader::FileReader | ( | ) |
Default constructor. Does nothing.
|
virtual |
Destructor
| void ccmc::FileReader::addVariableName | ( | const std::string & | variable, |
| long | id | ||
| ) |
| long ccmc::FileReader::close | ( | ) |
Closes the currently selected file.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Returns the variable ID as a long. Using the variable ID wherever possible is significantly faster than the equivalent methods accepting the variable string.
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
protected |
Helper method to store the global attributes in a map. This solves some issues with threaded operations on CDF files.
|
protected |

|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
pure virtual |
Implemented in ccmc::CDFFileReader.
| long ccmc::FileReader::open | ( | const std::string & | filename, |
| bool | readonly = true |
||
| ) |
| filename |
|
pure virtual |
Implemented in ccmc::CDFFileReader.
|
static |
|
protected |
|
static |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
1.8.3